package sz.szsmk.citizencard.ui.dzsmkavtivity;

import android.os.Bundle;
import androidx.annotation.Nullable;
import android.widget.TextView;

import com.chenenyu.router.annotation.Route;
import com.gyf.immersionbar.ImmersionBar;

import sz.szsmk.citizencard.R;
import sz.szsmk.citizencard.model.network.dzbean.res.Qa;

/**
 * Created by yangzhengwen on 2017/10/5.
 */
@Route("dzsmkquestion")
public class QuestionDetailActivity extends AppBaseActivity {

    TextView tv_qr_title;
    TextView tv_qr_content;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getComponent().inject(this);
        setContentView(R.layout.qr_activity_qa_detail);

        tv_qr_title = findViewById(R.id.tv_qr_title);
        tv_qr_content = findViewById(R.id.tv_qr_content);


        ImmersionBar.with(this)
                .fitsSystemWindows(true)
                .statusBarDarkFont(true, 0f)
                .statusBarColor(R.color.white).init();
        Qa faq = (Qa) getIntent().getSerializableExtra("faq");

        if (faq != null) {
            tv_qr_title.setText(faq.getTitle());
            tv_qr_content.setText(faq.getContent());
        }
    }

    @Override
    protected CharSequence getTopTitle() {
        return "常见问题";
    }
}
